Method and system for tracking attitude

ABSTRACT

A method and system for tracking attitude of a device includes fixing a two-dimensional array of photosensors to the device and using the array to form a reference frame and a sample frame of images. The fields of view of the sample and reference frames largely overlap, so that there are common imaged features from frame to frame. Sample frames are correlated with the reference frame to detect differences in location of the common features. Based upon detection of correlations of features, an attitudinal signal indicative of pitch, yaw, and/or roll is generated. In the preferred embodiment, the attitudinal signal is used to manipulate a screen cursor of a display system, such as a remote interactive video system (RIVS). However, attitudinal tracking using the invention may be employed in other applications. Another aspect of the invention is that the two-dimensional array is configured to compensate for any curvilinear distortions introduced by a lens system for imaging the features within the field of view of the array.A movable device, such as an optical mouse, includes a housing, a lens system in the housing and an array of photosensors in the housing for acquiring images in light applied to the array by the lens system, the array disposed in a plurality of rows and columns defining an optical axis, adjacent columns being spaced apart by boundaries having curvatures increasing with departure from the optical axis sufficient to compensate for curvilinear distortion introduced in the images by characteristics of the lens system, the array comparing data from the images to indicate motion of features of the images relative to the housing.

CROSS REFERENCE TO RELATED APPLICATION(S)

This is a continuation of copending application Ser. No. 09/022,097filed on Feb. 11, 1998 now Pat. No. 6,175,357 which is a divisionalapplication of Ser. No. 08/540,355 filed Oct. 6, 1995, now U.S. Pat. No.5,786,804.

TECHNICAL FIELD

The invention relates generally to methods and systems for trackingattitude of a device and more particularly to tracking the attitude of adevice in order to control a device or process, such as a cursor of avideo display.

BACKGROUND ART

A device may be used to control the cursor of a video display.

There are applications in which video systems require that a personinteract with information presented on a display screen. At times, theinteraction is to occur while the person is situated at a distance fromthe display screen. As will be described more fully below, theinteraction may be accomplished by remotely controlling a screen cursorin one of a variety of manners. The interactions may include selectingfrom a variety of choices presented as a screen menu, or “typing” textusing an on-screen keyboard. Examples of remote interactive videosystems (RIVS) include interactive television (ITV), TV-style Internetbrowsers, and conference-room video projectors.

One key component of a RIVS is the “pointing” device for controlling theon-screen cursor. The pointing device fulfills a function analogous tothat which mice, trackballs, and graphic tablets perform for computers.However, the environment for RIVS presents difficulties that aretypically not encountered in operation of a computer. For example, anoperator of a RIVS is typically further away from the controlled devicethan is the operator of a computer. As another example, the operator ofa RIVS is more likely to be in an unstructured immediate environment,e.g., an ITV operator seated across a living room from a television set.In many situations, the environment precludes use of conventionalcomputer pointing devices, such as mice. Moreover, a RIVS is rarelyequipped with a keyboard, so that the pointing device may have toaccommodate the extra burden of providing a text entry.

There are a number of known pointing devices for a RIVS. Most of theknown pointing devices implement some variation of a four-key cursor padon a hand-held controller. The four-key cursor pad is manipulated tostep the screen cursor up, down, left or right among various menuchoices. Such interfaces emulate the computer keyboard cursor keys usedwith old-style textural interfaces. However, these interfaces aretypically much slower and less intuitive to use than computer mice andother pointing devices developed for modern graphical softwareinterfaces.

In an effort to improve upon cursor control within the RIVS environment,more advanced computer pointing devices of mice and trackballs have beenadapted. In one adaptation, a miniature trackball is mounted atop acontroller, with the trackball being operated by the person's thumb. Thetrackball controller is faster than the use of cursor keys andfacilitates diagonal moves. Unfortunately, the trackball may requirerepeated strokes to accomplish large cursor movements and, in general,thumb control taxes the user's thumb dexterity. For example, it isdifficult to trace the cursor in a circle on the display screen.

The use of a mouse for ITV cursor control has been demonstrated. Theadvantage of the mouse is that it provides excellent and intuitivecursor control. The concern is that there may not be a suitable planaroperating surface that is convenient to the operator.

A further refinement in the RIVS pointing art is the use of devices thatenable control of a cursory by merely gesturing with a controller. Thesedevices may measure the attitude, i.e. pitch, yaw, and possibly roll, ofthe controller. A first category of such an approach employs light beamsto measure attitude. PCT International Publication Number WO 95/19031describes a system for determining the pointing orientation of a remoteunit relative to a fixed base unit. The fixed base unit includes one ormore light sources for emitting a light beam. The emitted light ispolarized in at least one predetermined orientation. The movable remoteunit includes a photodetector for detecting the polarized emitted light.The attitude of the movable remote unit may be determined by measuringthe intensity of received light from various directions.

Another implementation of the emitted-light category of measuringattitude is one in which an infrared (IR) signal is beamed from the areaof the video display. The IR signal is defocused and is imaged onto aquad photodiode array in the controller. The relative signal amplitudesfrom the four photodiodes may be used to determine the relativeorientation of the controller to a line drawn from the display. Oneconcern is that the system may undesirably flood the room with intenseIR, rendering other nearby IR-coupled appliances (e.g., a VCRcontroller) inoperative. A second concern is that the limited range oftransmission of defocused IR signals may render this system of measuringattitude unreliable when the controller is more than a relatively shortdistance from the video display.

A second category of devices that measure attitude of the controller isone in which inertial navigation principles are employed. Gyroscopes orencoded gimballed masses establish inertial frames in the controllers,against which attitude changes can be measured. The attitude informationmay then be transmitted to the video display via a radio-frequency linkto a small dipole antenna affixed atop the video display.

The third category is related to the first category. A hand-held objectthat provides cursor control has a number of light sources mounted onone surface. A single electronic camera is directed to capture images ofthe light sources mounted on a hand-held object. Locations of the imagesof the light sources are detected in each camera image, and a computeris used to determine the attitude of the light-emitting hand-heldobject. Such a device is described in U.S. Pat. No. 5,338,059 toDeMenphon.

A closely related need exists in the field of virtual reality. In games,simulations, and other visualization situations, it is often necessaryto encode the attitude of a user's head, or other body part. In manycases, systems for encoding head pitch and yaw may be applied to RIVScontrollers, and vice versa. One known virtual reality system encodespitch and yaw by means of instrumented compasses and gravimeters.

While the known cursor control devices and attitude-determining systemsoperate adequately for their intended purposes, each is associated witha concern or a problem. Operation may be slow or tedious, or may requireuse of a specific operating surface. Devices and systems that include IRradiation may adversely affect operation of other devices.Attitude-sensing devices that are based on gravity may have difficultyin distinguishing tilting from traverse acceleration, thereby renderingcontrol erratic. This last problem conceivably could be solved by gyrostabilization, but the cost and power consumption make this solutionunattractive. Known systems that utilize light detection require addinga second contrivance at the display, again adding additional cost.

What is needed is a method and a system for reliably tracking attitudeof a device. What is further needed is such a method and system that iscost efficient when used in controlling a screen cursor or when used inother remote interactive video applications.

SUMMARY OF THE INVENTION

An arrangement of a sensor and optics includes an array of photosensors,and a lens system for providing a focus for imaging by said array, saidlens system having a characteristic of introducing curvilineardistortion of an image to the array, the array having a shape to achievecompensation of the curvilinear distortion, including having arcuateedges to establish said compensation, wherein the photosensors aredisposed in a plurality of columns and a plurality of rows and whereinthe photosensors combine to define an optical axis for the array,adjacent columns being spaced apart by an arcuate boundary, withcurvatures of the arcuate boundaries increasing with departure from theoptical axis.

An arrangement of a sensor and optics includes a two-dimensional arrayof photosensors and a lens system for providing a focus for imaging bythe array, the lens system having a characteristic of opticallyintroducing curvilinear distortion of an image to the array, the arrayhaving a curvilinear shape to achieve compensation of the curvilineardistortion, including having a plurality of arcuate outer edges toestablish the compensation, the photosensors being varied dimensionallyto define the curvilinear shape, the curvilinear shape being alignedrelative to the curvilinear distortion to introduce a physicaldistortion that offsets the optically introduced curvilinear distortion,wherein the photosensors are disposed in a plurality of columns and aplurality of rows and wherein the photosensors combine to define anoptical axis for the array, adjacent columns being spaced apart by anarcuate boundary, with curvatures of the arcuate boundaries increasingwith departure from the optical axis.

A movable device includes a housing, a lens system in the housing and anarray of photosensors in the housing for acquiring images in lightapplied to the array by the lens system, the array disposed in aplurality of rows and columns defining an optical axis, adjacent columnsbeing spaced apart by boundaries having curvatures increasing withdeparture from the optical axis sufficient to compensate for curvilineardistortion introduced in the images by characteristics of the lenssystem, the array comparing data from the images to indicate motion offeatures of the images relative to the housing.

Correlation of successive images acquired by means of a two-dimensionalarray of photosensors is used as a basis for tracking attitude of adevice to which the array is affixed. In the preferred embodiment, thedevice is a hand-holdable member, such as a controller for maneuvering acursor on a display screen of a video set. Based upon the step ofcorrelating images to detect differences in location of imaged featuresthat are common to a succession of images, the system generates anattitudinal signal indicative of any changes in angular orientationduring the time period of acquiring the images. That is, the attitudinalsignal is determined by the pitch and yaw, and optionally the roll, ofthe device that bears the array of photosensors. Since the acquiredimages need not be related to that which is being controlled, e.g. ascreen cursor, the device can face in any direction during the controlprocess. Moreover, it is not necessary to provide a dimensionalone-to-one correspondence of angular displacement of the device andtravel of that which is being controlled. Within cursor control, forexample, the controller may be directed arbitrarily and relationships ofdegrees of pitch and yaw to lengths of cursor movement may beuser-adjustable.

The two-dimensional array of photosensors is used to acquire a referenceframe for tracking the attitude of the device. The reference frame isstored and a second image of features within a field of view of thearray is acquired. The second image may be considered to be a sampleimage, and the fields of view of the two images should be largelyoverlapping, so that the reference and sample frames include a number ofcommon features. While not critical, the device includes optics whichprovide a focus nominally at infinity, intentionally presenting anoff-sharp image to the array of photosensors. In the application of thedevice for controlling a screen cursor, the representative imagedfeatures will typically include windows, lamps, furniture and thedisplay screen itself. In any application of the invention, one or morestationary sources of light may be specifically added within theenvironment to be imaged, so that successive images of the fixed lightare used for the purpose of correlation. In one implementation of suchan embodiment, the source of light is an IR emitter and the imagingarray on the device is provided with IR filtering to permit tracking ofthe attitude of the device.

Conceptually, the step of correlating the reference frame with a sampleframe is one in which one of the frames is fixed in position and theother frame is repeatedly shifted to determine which shifted positionbest approximates an alignment of the imaged features that are common tothe two frames, thereby allowing the determination of the pitch and yawof the imaging array during the interval between acquiring the twoframes. In practice, the shifts are performed computationally and areshifts of pixel values in which each pixel value is indicative of lightenergy received at a particular photosensor at a specific time. Thecorrelations may be limited to computational shifts of only one pixelfor nearest-neighbor correlations, or may be multi-pixel computationalshifts. The nearest-neighbor correlation process if often preferred,since it is less computationally complex, with only the originalposition and eight computational shifts being necessary. Interpolationsare then performed to determine angular displacements that are less thana full pixel. Angular displacement of the device about a horizontalaxis, i.e. pitch, will result in the arrangement of pixel values of thereference frame being moved upwardly or downwardly. Angular displacementof the device about a vertical axis, i.e. yaw, will result in the pixelvalue arrangement being moved to the left or to the right. The systemdetects pitch, yaw and combinations of pitch and yaw. The attitudinalsignal that is generated by the system is responsive to the detection ofsuch angular displacements. Optionally, roll may also be considered.

In the application in which the attitudinal signal is generated in orderto control a screen cursor, the device preferably includes a transmitterfor wireless transmission of a cursor-control signal. For example, thesignal may be transmitted via an infrared beam. Changes in the pitch ofthe hand-holdable device are then translated into vertical movements ofthe screen cursor, while changes in device yaw will move the screencursor laterally. In this embodiment, translational movement of thedevice may also be detected and utilized, so that vertical or horizontalmovement of the device translates to a corresponding vertical orhorizontal movement of the screen cursor.

One concern in the implementation of the method and system is the effectof the phenomena known in the lens design as curvilinear distortions.Curvilinear distortions are also referred to as pin-cushion, barrel, andperspective distortions. Rectilinear detail is compressed at the outeredges of the field by such distortion. Curvilinear distortion isparticularly pronounced in simple lenses with wide fields of view, suchas the lens contemplated for use with the present invention. In theinvention, the field of view is preferably approximately 64°, so thatcurvilinear distortions will inevitably occur.

In the preferred embodiment, the photosensors of the array varydimensionally in order to define an array that is curvilinear, i.e.,includes an arcuate outer edge. The curvilinear array is dimensioned tocompensate for the curvilinear distortion introduced by the lens system.The imaging by the optics is evaluated to characterize the curvilineardistortion, with the array then being patterned to offset thedistortion. In this manner, the arrangement of the photosensor array andthe optics greatly reduces adverse effects of curvilinear distortion.

An advantage of the invention is that device attitude may be tracked ina reliable and cost-efficient manner. For those applications in whichthe array-bearing device is a hand-holdable device, control of a screencursor or the like is economically achieved without a premium ondexterity. Moreover, the device does not require operation on a suitablesurface.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a perspective view of a hand-holdable device that enablesattitude tracking of the device, in accordance with the invention.

FIG. 2 is a block diagram of components for controlling a screen cursorin accordance with the invention.

FIG. 3 is a block diagram of an array of photosensors and transferamplifiers of the correlator of FIG. 2.

FIG. 4 is an operation view of the steps for correlating successiveimages in accordance with the invention.

FIG. 5 is a conceptual view of the steps of FIG. 4.

FIG. 6 is an embodiment of a computation cell of an array of cells forcarrying out the steps of FIG. 4.

FIGS. 7-11 illustrate arrays of photosensors and computation cells fordemonstrating and then reducing curvilinear distortions.

BEST MODE FOR CARRYING OUT THE INVENTION DETAILED DESCRIPTION OFPREFERRED EMBODIMENT(S)

Correlation of successive images acquired by means of a two-dimensionalarray of photosensors is used as a basis for tracking attitude of adevice to which the array is affixed. In the preferred embodiment, thedevice is a hand-holdable member, such as a controller for maneuvering acursor on a display screen of a video set. Based upon the step ofcorrelating images to detect differences in location of imaged featuresthat are common to a succession of images, the system generates anattitudinal signal indicative of any changes in angular orientationduring the time period of acquiring the images. That is, the attitudinalsignal is determined by the pitch and yaw, and optionally the roll, ofthe device that bears the array of photosensors. Since the acquiredimages need not be related to that which is being controlled, e.g. ascreen cursor, the device can face in any direction during the controlprocess. Moreover, it is not necessary to provide a dimensionalone-to-one correspondence of angular displacement of the device andtravel of that which is being controlled. Within cursor control, forexample, the controller may be directed arbitrarily and relationships ofdegrees of pitch and yaw to lengths of cursor movement may beuser-adjustable.

The two-dimensional array of photosensors is used to acquire a referenceframe for tracking the attitude of the device. The reference frame isstored and a second image of features within a field of view of thearray is acquired. The second image may be considered to be a sampleimage, and the fields of view of the two images should be largelyoverlapping, so that the reference and sample frames include a number ofcommon features. While not critical, the device includes optics whichprovide a focus nominally at infinity, intentionally presenting anoff-sharp image to the array of photosensors. In the application of thedevice for controlling a screen cursor, the representative imagedfeatures will typically include windows, lamps, furniture and thedisplay screen itself. In any application of the invention, one or morestationary sources of light may be specifically added within theenvironment to be imaged, so that successive images of the fixed lightare used for the purpose of correlation. In one implementation of suchan embodiment, the source of light is an IR emitter and the imagingarray on the device is provided with IR filtering to permit tracking ofthe attitude of the device.

Conceptually, the step of correlating the reference frame with a sampleframe is one in which one of the frames is fixed in position and theother frame is repeatedly shifted to determine which shifted positionbest approximates an alignment of the imaged features that are common tothe two frames, thereby allowing the determination of the pitch and yawof the imaging array during the interval between acquiring the twoframes. In practice, the shifts are performed computationally and areshifts of pixel values in which each pixel value is indicative of lightenergy received at a particular photosensor at a specific time. Thecorrelations may be limited to computational shifts of only one pixelfor nearest-neighbor correlations, or may be multi-pixel computationalshifts. The nearest-neighbor correlation process is often preferred,since it is less computationally complex, with only the originalposition and eight computational shifts being necessary. Interpolationsare then performed to determine angular displacements that are less thana full pixel. Angular displacement of the device about a horizontalaxis, i.e. pitch, will result in the arrangement of pixel values of thereference frame being moved upwardly or downwardly. Angular displacementof the device about a vertical axis, i.e. yaw, will result in the pixelvalue arrangement being moved to the left or to the right. The systemdetects pitch, yaw and combinations of pitch and yaw. The attitudinalsignal that is generated by the system is responsive to the detection ofsuch angular displacements. Optionally, roll may also be considered.

In the application in which the attitudinal signal is generated in orderto control a screen cursor, the device preferably includes a transmitterfor wireless transmission of a cursor-control signal. For example, thesignal may be transmitted via an infrared beam. Changes in the pitch ofthe hand-holdable device are then translated into vertical movements ofthe screen cursor, while changes in device yaw will move the screencursor laterally. In this embodiment, translational movement of thedevice may also be detected and utilized, so that vertical or horizontalmovement of the device translates to a corresponding vertical orhorizontal movement of the screen cursor.

One concern in the implementation of the method and system is the effectof the phenomena known in the lens design as curvilinear distortions.Curvilinear distortions are also referred to as pin-cushion, barrel, andperspective distortions. Rectilinear detail is compressed at the outeredges of the field by such distortion. Curvilinear distortion isparticularly pronounced in simple lenses with wide fields of view, suchas the lens contemplated for use with the present invention. In theinvention, the field of view is preferably approximately 64°, so thatcurvilinear distortions will inevitably occur.

In the preferred embodiment, the photosensors of the array varydimensionally in order to define an array that is curvilinear, i.e.,includes an arcuate outer edge. The curvilinear array is dimensioned tocompensate for the curvilinear distortion introduced by the lens system.The imaging by the optics is evaluated to characterize the curvilineardistortion, with the array then being patterned to offset thedistortion. In this manner, the arrangement of the photosensor array andthe optics greatly reduce adverse effects of curvilinear distortion.

An advantage of the invention is that device attitude may be tracked ina reliable and cost-efficient manner. For those applications in whichthe array-bearing device is a hand-holdable device, control of a screencursor or the like is economically achieved without a premium ondexterity. Moreover, the device does not require operation on a suitablesurface.

With reference to FIG. 1, a hand-holdable controller device 10 is shownas including an integrated circuit package 12 for acquiring andprocessing image data. On the surface of the package is an optoelectricintegrated circuit chip 14 having a two-dimensional array 16 ofphotosensors and having processing circuitry 18. The array andprocessing circuitry are used to acquire successive frames of imagedata, permitting the attitude of the device to be tracked. Thus, angulardisplacement about a horizontal axis 20, i.e. pitch, and angulardisplacement about a vertical axis 22, i.e. yaw, can be determined.Optionally, roll about the longitudinal axis 24 of the device 10 canalso be monitored.

The invention will be described primarily with reference to providingcontrol of a remote element, such as controlling a screen cursor of avideo display. However, it is understood that the approach of a trackingattitude by means of correlating images formed by a photosensor arrayattached to the device has applications beyond that of controlling ascreen cursor or the like.

The sensor array 16 and the processing circuitry 18 are mounted on thefront of the controller device 10 with the array facing outwardly. Alens 26 is shown in FIG. 1 as being partially cutaway in order to exposethe array and circuitry. The lens may be an inexpensive plastic lensthat is molded to the integrated circuit package 12. The focus of thelens is set nominally at infinity. The lens provides an image of aregion of the surrounding environment to the sensor array 16. A shortfocal-length lens is preferred, since a greater number of featureswithin the environment will be imaged and used for the purpose oftracking attitude. The image quality demands are sufficiently lax, suchthat the demands on the optical arrangement are not stringent. In fact,a slight blurring is desirable, so that the spatial frequencies of theimage are coarser than the size of the array elements.

The width of the field of view for imaging the environment is a matterof balancing the desire of capturing as much visible detail as possiblewith the requirement of avoiding excessive distortion. A 64° field ofview provides a reasonable compromise between these two concerns. Thedashed lines 28 in FIG. 1 represent the field of view for the sensorarray 16. The arrangement of the optics and the sensor array may beselected to reduce any adverse effects of curvilinear distortion on theattitude-tracking approach of the invention. The optic/sensorarrangement will be described in greater detail below.

On the top surface of the controller device 10 are a cursor control key30 and a return key 32. In operation, the screen cursor of a videodisplay may be captured by depression of the control key 30. With thecontrol key in a depressed position, the angular displacement of thedevice 10 will be translated into movement of the cursor along thedisplay screen. For example, in selecting a particular movie from a menuof movies presented by an interactive television system, key 30 isdepressed and pitch and/or yaw of the device 10 is employed to drag thescreen cursor to the desired movie. The control key 30 is then releasedto release control of the screen cursor. With the cursor indicating thedesired menu choice, the return key 32 is depressed to activate theselection. Alternatively, a single selection key similar in operation tothat of a computer mouse may be utilized, so that cursor control iscontinuously enabled.

Remote communication is provided by infrared transmission via an emitter34. Infrared emission is well known in the art. For cursor control,signal vectors are generated and transmitted. The vectors are sent asincrements in order to reduce the burden of the IR communicationschannel by keeping the data bytes shorter. The rate at which vectors aretransmitted should be sufficiently fast to achieve the necessary cursorresponsiveness, but not so fast as to tax the limited bandwidths of theIR link to the controlled set. As will be explained more fully below, inone embodiment the transmission is a 10-bit word that is emitted every40 ms, as needed. When neither of the keys 30 and 32 is depressed, notransmission occurs. This frees the IR emitter for other functionsduring non-cursor events. Thus, the controller device 10 may includekeys to control other events, such as the changing of a televisionchannel.

Referring now to FIGS. 1 and 2, a control clock 36 determines the timingof operations for the controller device 10. The image-capture rate is atleast partially determined by the features that are to be imaged. Wherethe field of view 28 is a living room of a person engaged in operationof an ITV system, the image capture rate must be sufficiently great toensure that the image data is sufficiently intelligible to permitcorrelation between successive images. The circuitry of FIG. 2 includesan exposure control 38 which shows a minimum exposure of 5 μs and amaximum exposure of 5 ms. Electronically, the “exposure time” is theinterval during which charge generated by the individual photosensors isallowed to integrate during the 5 ms period between successive imagecaptures. While the exposure control may be manually adjusted, thepreferred embodiment is one in which there is a feedback line 40 fromimage correlator circuitry 42 to establish automatic gain control. Thus,if the image data is consistently off-scale for performing correlationprocessing, the exposure control 38 increases the interval forintegrating charge by the photosensors.

As previously noted, the field of view 28 is contemplated to beapproximately 64°. In a sensor array of 32×32 photosensors, a singlepixel will have an approximately 2° field of view (64°/32 pixels). Inthe preferred embodiment to be described below, correlations are limitedto nearest-neighbor pixel cells. This establishes a maximum velocity formovement of the controller device 12. In the preferred embodiment, themaximum velocity should not exceed one pixel length between successiveimage captures. If a frame of image data is to be acquired at thecorrelator 42 every 5 ms, the maximum velocity will be 200 pixels persecond. Since the field of view of each pixel is 2°, the maximumvelocity is 400° per second.

The operation of the correlator 42 will be explained in detail below.Its basic function is to compare the arrangement of pixel values in afirst frame of image data to the location of a similar arrangement in asubsequent frame. The sensor array 16 is used to acquire a frame of32×32 pixel values. The first captured frame is referred to as areference frame. The first reference frame is captured upon depressionof the cursor control key 30 of FIG. 1. A subsequently captured frame ofpixel values, referred to as a sample frame, is compared with thereference frame to detect changes in attitude of the controller device10. A new reference frame is then acquired. The reference frame may bereplaced by the sample frame after each correlation. Alternatively, thereference frame may be replaced with a sample frame each time athreshold is reached, such as a time threshold or a threshold based uponmovement of the device.

Correlation will be described in detail below. Conceptually, the processmay be considered as fixing the two-dimensional reference frame inposition and shifting a transparency of the two-dimensional sample frameto various positions atop the reference frame in order to detectalignment of common features of the two frames. This conceptual view isshown in FIG. 5 and is computationally carried out by an array of cellssuch as the pixel cell shown in FIG. 6.

The correlation processing generates an attitudinal signal indicative ofany changes in angular orientation of the controller device 10. In FIG.2, the correlator 42 is shown as generating a signal in which changealong the X axis is +0.75 pixels, while the change along the Y axis is−0.31 pixels. In FIG. 1, positive movement along the X axis may beindicated as a result of angular displacement of the device 10 such thatthe field of view 28 is moved in the direction of arrow 44, while anegative movement along the X axis is one in which a component ofdisplacement of the field of view 28 is in the direction indicated byarrow 46. Regarding the Y axis, a positive value at the attitudinalsignal indicates manipulation of the device 10 to rotate the field ofview as shown by arrow 48, while a negative value of ΔY indicatesdisplacement in the direction shown by arrow 50.

The preferred approach for operation of the correlator 42 is one inwhich nearest-neighbor pixel shifts are executed in order to trackchanges in attitude of the controller device. This approach will bedetailed when referring to FIGS. 4, 5 and 6. However, the attitudetracking alternatively may be carried out using correlations requiringshifts of greater than a single pixel. For either approach,interpolations are computationally performed to identify fractionalpixel values. Such image correlating interpolating is well understood bypersons skilled in the art.

The output from the correlator 42 is received at a multiplier 52 thatincreases the sensitivity of the cursor control. In the embodiment ofFIG. 2, the multiplier doubles the ΔX and ΔY values from the correlator.The signal is then conducted to an accumulator 54. A divide-by-eightcircuit 56 dictates operation of the accumulator 54. Eight samples willbe received from the multiplier 52 before the accumulator outputs asample to a modulo function block 58. The output of the modulo blockwill be the integer portion of the accumulation of the eight samplesfrom the multiplier 52. As previously noted, the controller devicetransmits a cursor control signal by means of an IR emitter 34. IRtransmission links have limited bandwidth. The use of the accumulator 54reduces the demands on the communications link.

The exemplary sample from the accumulator 54 in FIG. 2 is shown to beone in which ΔX=+15.2 pixels and ΔY=−3.3 pixels. The modulo block 58passes only the whole numbers to a pulse code modulator 60. Each of theΔX and ΔY values is contained within 5 bits, with 4 bits relating to thenumerical value and the remaining bit relating to whether the numericalvalue is positive or negative.

The values output from the modulo block 58 to the modulator 60 are wholenumber values, while the remainder of the sample from the accumulator 54is conducted to a residue circuit 62. The residue values are saved atthe residue circuit and added to subsequent values from the accumulator.

The remaining arrangement of components is well known in the art. A10-bit word is output from the pulse code modulator 60 to an amplifier64 every 40 ms. Thus, the IR transmission from the emitter 34 is only 25words per second. The IR transmission is received by a sensor 66 of adisplay system, such as a RIVS. The signal from the IR sensor 66 isdecoded at a demodulator 68 and transmitted to a cursor control circuit70 for manipulating a screen cursor of a video screen 72. Merely forexample, the screen may have 64×64 cursor addresses and the screencursor may move 15×25=375 address states/second. In the example givenabove in which the field of view 28 of FIG. 1 is 64°, the screen can betraversed in 0.17 second (64/375).

The arrangement and interaction of the components of FIG. 2 permitcursor control based upon tracking of the attitude of the controllerdevice 10 of FIG. 1. The controller encodes the device pitch, yaw andoptionally roll by tracking the apparent motion of an image of theenvironment in which the device resides. It is not necessary to pointthe controller-in any one direction, other than to establish the IR linkbetween the emitter 34 and the sensor 66. With the possible exception ofthe correlator 42, the individual components of FIG. 2 are readilyunderstood by persons skilled in the art and need not be explained indetail. However, the preferred embodiment of the correlator 42 will beset forth below. The preferred arrangement of the two-dimensional sensorarray 16 and the optics 26 will also be set forth.

Column Transfers of Photosensor Signals

As previously noted, the embodiment of FIGS. 1 and 2 includes a sensorarray 16 having thirty-two columns and thirty-two rows of photosensors.Referring now to FIG. 3, five columns 74, 75, 76, 77 and 78 of thethirty-two columns of photosensors are shown. Also shown are six of thethirty-two rows 79, 80, 81, 82, 83 and 84. Each column is operativelyassociated with a separate transfer amplifier 85. A photosensor in acolumn is connected to the operatively associated transfer amplifier forclosing a read switch 86. In the operation of the circuitry of FIG. 3,no two photosensors are connected to the same transfer amplifiersimultaneously.

Each transfer amplifier 85 includes an input 87 that is connected to asource of a fixed voltage. A second input 85 is capacitively connectedto the output 90 of the transfer amplifier by a transfer capacitor 89.

In the operation of the circuit of FIG. 3, the read switches 86 of thefirst row 79 of photosensors may be closed, so that each transfercapacitor 89 receives a charge corresponding to the light energy at theassociated photosensor in the first row. Thus, the transfer amplifiers85 and the transfer capacitors 89 function as integrators. The receivedcharge is transferred to subsequent processing circuitry via the outputlines 90. Following the readout of the first row, the read switches ofthe first row are opened and the transfer amplifiers are reset. The readswitches of the second row 80 are then closed in order to transfer thesignals from the photosensors of the second row. The process is repeateduntil each row of photosensors is read. By the operation of the transferamplifiers 85, photosensor signals are transferred in a row-by-rowfashion to subsequent circuitry.

Correlation Processing

FIG. 4 illustrates steps for carrying out the correlation processing fortracking attitude of a device. In effect, the correlations compare thepositions of imaged features in successive frames to provide informationrelated to changes in angular orientation during time intervals betweenframes. In a first step 200, a reference frame is acquired. As notedabove, the capture of the reference frame may be initiated by depressionof the cursor control key 30 on the upper surface of the device 10 ofFIG. 1. The row-by-row transfer of signals from the photosensorscontinues until each photosensor in the array 16 has been read. Thereference frame is a frame of 1,024 pixel values (32×32=1,024).

While the tracking of the attitude of the controller device 10 isperformed computationally, the concepts of the correlation may bedescribed with reference to FIGS. 4 and 5. A reference frame 202 isshown as having an image of a T-shaped feature 204. The image featuremay be a window in a room of a person operating an ITV system. At alater time (dt) the sensor array 16 of FIGS. 1-3 is used to acquire asample frame 206 as shown in FIG. 5. The field of view 28 of thecontroller device during acquisition of the sample frame largelyoverlaps the field of view at the time of acquiring the reference frame202. As a result, the imaged feature 204, e.g. a window, is includedwithin both of the frames. The duration dt and the velocity of themovement of the device preferably are such that the common features 204will move less than one pixel from the reference frame to the sampleframe. The schematic representation of FIG. 5 shows the feature ashaving shifted upwardly and to the right by one full pixel. Thefull-pixel shift is assumed only to simplify the representation.

FIG. 4 shows the step 208 of acquiring the sample frame after the step200 of acquiring the reference frame. A computation step 210 is thenexecuted. The correlation step is a shifting of the arrangement of thepixel values of the sample frame 204 and two nearest-neighbor pixelcells. The shifting is performed sequentially for each of eightnearest-neighbor pixel cells, as represented by member 212 in FIG. 5.Referring to the member 212, step “0” does not include a shift of thepixel values in the sample frame 206, step “1” is a diagonal shiftupwardly and to the left, step “2” is an upward shift of the pixelvalues of the sample frame, etc. Eight shifts of the reference framerepresented by member 212 occur one at a time, but all pixel values areshifted uniformly. In this manner, the eight pixel-shifted sample framescan be combined with the reference frame 202 to produce the frame array214 of position frames. The position frame designated as “Position 0”does not include a shift, so that the result is merely a combination offrames 202 and 206.

Within the frame array 214, “Position 7” has the highest correlation.Based upon the correlation results, the position of the T-shaped feature204 in the sample frame 206 is determined to be an upward and right-wardshift relative to the position of the same feature in theearlier-acquired reference frame 202. The movement of the features is aresult of a combination of pitch and yaw of the controller device 10 ofFIG. 1, with components indicated by the leftward arrow 44 and thedownward arrow 50.

While other correlation approaches may be employed, an acceptableapproach is a “sum of the squared differences” correlation. For theembodiment of FIGS. 4 and 5, there are nine correlation coefficients(C_(k)=C₀, C₁ . . . C₈) formed from the nine offsets of 212.

Correlations are used to find the locations of common features 204 ofsuccessive frames 202 and 206 in order to track the angular orientationof the controller device 10. Summing or integrating angulardisplacements from frame-to-frame allows an attitudinal signal to begenerated for controlling a screen cursor.

After the correlation step 210 has been executed for the sample frameacquired at step 208, a determination is made at step 216 as to whetherto maintain or replace the reference frame. In some embodiments, thereference frame is not replaced. If the same reference frame is to beused for subsequent correlation computation, the process returns to step208 and a new sample frame is acquired. On the other hand, forapplications in which there is a substitution of reference frames, step218 shows the use of the previously acquired sample frame as a newreference frame prior to returning to step 208 of acquiring a new sampleframe.

If the same reference frame is to be used throughout a process ofdragging a cursor along a screen, the reference frame can be shiftedupon detection that common features have traveled more than one pixellength since the acquisition of the reference frame. Thus, the referenceframe is “walked” by detection of pitch, yaw and/or roll of the device.This process provides a high degree of correlation match, but errorsthat do occur will accumulate if the reference frame is not periodicallyreplaced. Thus, in the preferred embodiment step 218 is included so asto place a restriction on the growth rate of this “random walk” error.

Computation Cell

FIG. 6 is a schematic diagram of an individual pixel cell, orcomputation cell 94, for implementing the nearest-neighbor shifts ofmember 212 in FIG. 5 and for carrying out the various steps of FIG. 4.However, as will be understood by persons skilled in the art, othercircuits may be used to carry out the process steps described andillustrated with reference to FIGS. 4 and 5.

The computation cell 94 of FIG. 6 is one of an array of computationcells. If there is a one-to-one correspondence of computation cells andphotosensors, the embodiment of FIGS. 1-3 will have 1,024 computationcells. For the reference frame, the pixel value from the photosensorthat corresponds to the particular cell 94 will be stored at the REFDATAnode 148, while pixel values of the sample frame will be stored at NN(0)node 108. The shifted sample frames for forming the frame array 214 ofFIG. 5 are provided by changing the signal connections to NNINPUT input150 of a square-of-the-difference circuit 146. The output 150 of thecircuit 146 is combined with the outputs of the other 1,023 computationcells to track the attitude of the controller device 10.

Image data WDATA(i) is received from the photosensor that corresponds tothe computation cell 94 at line 96, by means of a charge compensatetransistor switch 98 under the control of a WR(j) signal. After theWR(j) signal is deasserted, the new data is held at capacitor 100 and isbuffered by an amplifier 102. In the entire array of 1,024 computationcells, the array of CDATA nodes 104 is collectively referred to as the“reference frame” or the “sample frame,” depending upon the timing ofthe process. Control input CDOUT 106 selects signal CDATA, comparisondata, or selects REFOUT for the nearest-neighbor output node NN(0) 108.

The nearest-neighbor inputs NN(0)-NN(8) 110, 112, 114, 116, 118, 120,122, 124 and 126 are separately selected by means of switch controlsignals S(0)-S(8) on lines 128. The NN(0)-NN(8) inputs 110-126 are theoutputs of the nearest-neighbor cells according to the data cell map 212of FIG. 5. The switch control signals are generated by a 4-9 encoder,not shown, that is external to the computational array. The 4-bit inputto the encoder is referred to as the nearest-neighbor address and takeson binary values from 0000(0) to 1000(8).

The nearest-neighbor input (NNINPUT) node 130 is sampled by pulsingREFLD 132, thereby storing the NNINPUT on node REFH 134. Similarly,REFDATA 136 can be sampled and held on REFSH 138 by pulsing REFSFT 140.

For testing, ROWTSTB 142 can be asserted, allowing the NN(0) signal topropagate to the TEST output 144. The TEST signals from each cell in arow of cells connect to common vertical buses in each column of thecomputational array and are multiplexed at the bottom of the array anddriven off-chip. A standard row decoder along the left edge of the arrayallows selection of a particular row for test. However, the test featureis not critical to the invention.

Each computational cell 94 has a circuit 146 that determines correlationvalues. A first input 148 receives the reference data from REFDATA node136. A second input 150 provides the nearest-neighbor input NNINPUTselected by the appropriate switch control signal at lines 128. Theoutput 152 of the correlation cell is a current. All of the correlationoutputs in the computational array are summed together in a singleoff-chip summing resistor of a tracking circuit 154. The voltagedeveloped across the summing resistor is referred to as the correlationvalues in FIG. 4.

In the embodiment of FIG. 6, the circuit 146 is based on asquared-difference calculation. The cell 94 may be modified to provideproduct-based correlations without modifying the basic architecture ofthe array. Control inputs S(0)-S(8), REFLD, REFSFT and CDOUT are globalto the entire array, so that the sample frame is manipulated and shifteduniformly within the computation cell array.

It is important to understand the relationship between thenearest-neighbor map represented by 214 in FIG. 5 for a single cell andfor the array as a whole. Location 0 of an image refers to the presentlocation of the image. When referring to the movement of an image fromlocation 0 to location 1, the representation is that the image data inall of the cells of the array are moved to the neighbor cell that is tothe left and upward. That is, the movement is relevant to a single cellin the array and is relevant to every cell in the array.

The computational array functionality can be best described in terms offour basic operations: image acquisition, reference image load,correlation computation, and reference image translation. The imageacquisition refers to the loading of new image data via the WDATA line96 of each computation cell 94. In the present implementation, every 50ms a new frame of pixel values is acquired from the sensor array via thecolumn transfer amplifiers. The process of loading a new reference imageis referred to as a “frame transfer.” The operations of the computationarray described below are coordinated with the frame transfer process byobserving and synchronizing with a frame transfer (FTB) signal. Thevalidity of a new sample image is signaled by the falling edge of theFTB signal. The operations described below are only appropriate when FTBis not asserted.

Loading a reference frame of pixel values is required before any imagecorrelations can be calculated. To load the reference frame, all of thevoltages at the CDATA nodes 104 in the computational array must betransferred to the REFH nodes 134. This is accomplished by setting CDOUT106 and S(0) high, and pulsing the REFLD signal on line 132. Thereference frame can also be loaded from another nearest-neighborlocation by asserting one of the S(1)-S(8) inputs instead of S(0).Amplifier 156 buffers the REFH node 134 from the REFDATA nodes 136. Thetwo-dimensional array of REFDATA nodes 136 within the computationalarray are collectively known as the reference frame.

After a reference frame has been loaded, the computational array isready to compute correlations. Correlations between the reference frameof pixel values and the subsequent sample frame are computed by settingthe nearest-neighbor address to the desired value and recording theresulting voltage developed across the summing resistor of the attitudetracking circuit 154. When the sensor array has moved a single pixeldistance from the location at which the reference frame was acquired, astrong correlation will be detected at one of the nearest-neighborlocations. In FIG. 5, the correlation is detected to be at POSITION 7 inthe array 214. Sub-pixel movements can be determined by interpolating intwo-dimensional correlation space.

It should be noted that correlations between the reference frame anditself can be computed by setting CDOUT 106 low and pulsing REFSFT 140.This causes the nearest-neighbor inputs to come from the referenceframe, rather than from the sample frame.

FIG. 4 referred to the step 218 of replacing the reference frame.However, the same reference frame may be used for multiple pixelmovements by allowing the reference to “reach” beyond thenearest-neighbor cells, upon detection that changes in the angularorientation of the device have caused the field of view to shift by morethan one pixel distance, the reference frame is shifted to the newlocation within the computational array. The shift to the new locationis dictated by the change in angular orientation of the device. With thereference frame in the new location, nearest-neighbor correlationsbecome correlations between the translated reference frame and a newlyacquired sample frame. By translating the pixel values of the referenceframe to new locations, inter-cell connectivity is kept to a minimumwithout compromising the accuracy of the attitude tracking.

The translation of the reference frame is accomplished within theindividual computation cells of the computational array. Referring tothe computation cell 94 of FIG. 6, a first step is to pulse REFSFT 140high to sample-and-hold the REFDATA signal 136 at REFSH 138. A thirdbuffer amplifier 158 drives REFOUT 160 with the REFSH signal. CDOUT 106is driven low, allowing REFOUT 160 to be the output of the computationcell 94 at the NN(0) node 108.

The nearest-neighbor address is then set to select the appropriateS(0)-S(8) input from the switch control signal lines 128. For example,if the T-shaped feature 204 in FIG. 5 is detected to have moved to theright and upwardly from the time at which the reference frame 202 isacquired to the time at which the sample frame 204 is acquired, thepixel values that comprise the reference frame must be shifted fromcell-to-cell to the right and upwardly. Since S(0)-S(8) signals switchthe address of the cell input NNINPUT 130, S(7) must be driven high toenable movement of the pixel value from location 7 to 212 in FIG. 5 tolocation 0. This takes place in each computation cell of thecomputational array. After REFOUT 160 has settled on the NNINPUT 130 ofthe appropriate neighbor cell, REFLD 132 is pulsed high tosample-and-hold the translated reference values at REFH 134. After thisoperation has occurred in each of the computation cells of the array,the computational array is again ready to compute correlations.

Sensor/optics Arrangement

Another aspect of the invention is the arrangement for significantlyreducing the adverse effects of what is known in lens design as“curvilinear distortions.” These distortions are also referred to aspincushion, barrel, and perspective distortions. The distortionscompress rectilinear detail at the outer edges of a field of view.

The curvilinear distortions are particularly pronounced in simple lenseswith wide fields of view. Such a lens may be used as the lens 26 inFIG. 1. The distortions are problematic, since they will cause theapparent shape of a feature to change as the feature drifts across thefield of view. A change in the apparent shape of a feature willadversely affect the correlation process described with reference toFIGS. 4-6.

FIG. 7 shows images of a T-shaped feature, imaged with distortion-freeoptics onto a 32×32 pixel array 220. With such optics, the shape of thefeature does not change with travel across the array, allowing highquality correlations and accurate tracking of pitch and yaw.

On the other hand, FIG. 8 illustrates the same feature imaged onto apixel array 222 using a simple lens. It can be seen that the distortionincreases as the feature is moved further from the optical axis of thelens. FIG. 9 shows in a stylized manner the way in which the feature isinterpreted by the computational array for performing the correlationprocessing of FIG. 5. Each pixel in the array 224 of FIG. 9 represents acomputational cell 94, such as the one shown in FIG. 6. It is evidentthat the feature is “viewed” differently as it changes position withinthe computational array. This reduces the quality of the correlation,and the accuracy of the tracking of device attitude. Equallyundesirable, the apparent motion of the feature changes with position,further degrading the accuracy of attitude tracking. For example, astrong off-axis moving detail will be measured as moving less than ifthe identical move were made on-axis. The result is a degradation of theattitude-tracking accuracy of the system. The adverse effects may bemade smaller by not carrying the reference image across as many pixels,but this option of more frequently “zeroing” the reference frameincreases the number of incremental errors, thereby adding its owncontribution to tracking inaccuracy.

FIG. 10 illustrates a two-dimensional array 226 of photosensorsconfigured to match the distortion of the lens. That is, thecharacteristics of the lens system with regard to introducingcurvilinear distortions are determined and the array is configured tocompensate for the distortion. Projected onto the curvilinear array of

FIG. 10 is the T-shaped feature in three different positions. It can benoted that although the images of the feature are still distorted, thedistortion causes the images to fit within the pixels. Thus, eachfeature will be viewed as being rectilinear at the computation arraylevel. That is, the corner image 228 will be distorted at the sensorlevel, as shown in FIG. 10, but the corner image 230 will be “viewed” asbeing an undistorted “T” at the computational array 232 of FIG. 11.

FIG. 10 illustrates a two-dimensional array 226 of photosensorsconfigured to match the distortion of the lens. That is, thecharacteristics of the lens, system with regard to introducingcurvilinear distortions are determined and the array is configured tocompensate for the distortions. Projected onto the curvilinear array ofFIG. 10 is the T-shaped feature in three different positions. It can benoted that although the images of the feature are still distorted, thedistortion causes the images to fit within the pixels. Thus, eachfeature will be viewed as being rectilinear at the computation arraylevel. That is, the corner image 228 will be distorted at the sensorlevel, as shown in FIG. 10, but the corner image 230 will be “viewed” asbeing an undistorted “T” at the computational array 232 of FIG. 11.

The method of ascertaining the curvilinear geometry of the photosensorarray elements may now be described. Conceptually, it consists ofstarting with an enlarged object plot of a 32×32 array of rectilinear(not curvilinear) cells, perhaps a foot square. The lens of choice isnext used to produce an image of this array. This small and curvilinearimage captures the distortions of the lens, and represents a reasonableapproximation to an ideal array geometry.

This process produces accurate imaging with lenses of any field of view,and has many applications such as in positional navigation. However, inthe present pointing device, it is a goal to transduce angles and notdistances. For lenses of narrow fields of view, angles tend to becomeincreasingly compressed as one moves further off of the optical axis.

This undesirable angular compression is avoided by changing the designprocess such that a segment of a sphere is substituted for theaforementioned flat array. The center of the spherical segment isoverlaid approximately with the nodal point of the lens. The segment islined at intervals of perhaps 2° in latitude and longitude. Each cellformed on the spherical segment, once imaged and reduced, is taken to bethe outline of an array cell.

In practice, this method of generating the geometry of the curvilineararray is best accomplished using computer ray tracing. Many commercialoptical design programs are available and familiar to those skilled inthe art.

One advantage of the curvilinear array is that it provides more accurateautocorrelations, regardless of how far the images move from the axis ofthe sensor array. A second benefit is that distances are true and notcompressed, so that attitude tracking is accurate over larger pixelmoves without regard to where the move is imaged on the sensor array.Each benefit of the curvilinear array in itself contributes to moreaccurate tracking. Since the correlation is stronger and less noisy, theaccuracy of measuring the end point of each move segment is higher.Moreover, since the image can be tracked in longer segments, thefrequency of zeroing the reference frame is reduced, so that thecumulative re-zeroing error becomes less. Finally, because thecurvilinear array does not compress off-axis moves, the accuracy ofdistance measurement is greater.

1. An arrangement of a sensor and optics comprising: an array ofphotosensors; and a lens system for providing a focus for imaging bysaid array, said lens system having a characteristic of Introducingcurvilinear distortion of an image to said array; said array having ashape to achieve compensation of said curvilinear distortion, includinghaving arcuate edges to establish said compensation; wherein saidphotosensors are disposed in a plurality of columns and a plurality ofrows and wherein said photosensors combine to define an optical axis forsaid array, adjacent columns being spaced apart by an arcuate boundary,with curvatures of said arcuate boundaries increasing with departurefrom said optical axis.
 2. The arrangement of claim 1 wherein adjacentrows are paced apart by second arcuate boundaries, with curvature ofsaid second arcuate boundaries increasing with departure from saidoptical axis.
 3. An arrangement of a sensor and optics comprising: atwo-dimensional array of photosensors; and a lens system for providing afocus for imaging by said array, said lens system having acharacteristic of optically introducing curvilinear distortion of anImage to said array; said array having a curvilinear shape to achievecompensation of said curvilinear distortion, including having aplurality of arcuate outer edges to establish said compensation, saidphotosensors being varied dimensionally to define said curvilinearshape, said curvilinear shape being aligned relative to said curvilineardistortion to introduce a physical distortion that offsets saidoptically introduced curvilinear distortion; wherein said photosensorsare disposed in a plurality of columns and a plurality of rows andwherein said photosensors combine to define an optical axis for saidarray, adjacent columns being spaced apart by an arcuate boundary, withcurvatures of said arcuate boundaries increasing with departure fromsaid optical axis.
 4. The arrangement of claim 3 wherein adjacent rowsare spaced apart by second arcuate boundaries, with curvature of saidsecond arcuate boundaries increasing with departure from said opticalaxis.
 5. A movable device, comprising: a housing; a lens system in thehousing; and an array of photosensors in the housing for acquiringimages in light applied to the array by the lens system, the arraydisposed in a plurality of rows and columns defining an optical axis,adjacent columns being spaced apart by boundaries having curvaturesincreasing with departure from the optical axis sufficient to compensatefor curvilinear distortion introduced in the images by characteristicsof the lens system, the array comparing data from the images to indicatemotion of features of the images relative to the housing.
 6. Theinvention of claim 5, wherein the array compares data from a first imagewith data from a subsequently acquired image to indicate the relativemotion.
 7. The invention of claim 5, wherein the array compares datafrom a first image with data from a subsequently acquired image duringan interval between acquiring the images.
 8. The invention of claim 5,wherein the array compares data from a first image with data from aseries of subsequently acquired images to indicate the relative motion.9. The invention of claim 8, wherein the array compares data from thefirst image with data from the series of subsequently acquired imagesand then compares data from the second image with data from the seriesof subsequently acquired images.
 10. The invention of claim 9, whereinthe array replaces data from the first image with data from the secondimage for comparison with data from the series of subsequently acquiredimages each time a threshold is reached.
 11. The invention of claim 10,wherein the threshold comprises: a time threshold.
 12. The invention ofclaim 10, wherein the threshold comprises: a threshold based on therelative movement.
 13. The invention of claim 8, wherein the arraycompares data from the first image with data from each of the series ofsubsequently acquired images by shifting one of the images with respectto another of the images.
 14. The invention of claim 8, wherein thearray compares data from the first image with data from each of theseries of subsequently acquired images by shifting one of the imageswith respect to another of the images to determine differences in thecomparisons between the data from the first image and data from each ofthe series of subsequently acquired images.
 15. The invention of claim8, wherein the array compares the data from the first image with thedata from each of the series of subsequently acquired images by shiftingone of the first or subsequently acquired images with respect to theother to determine differences in the comparisons between the data fromthe first image and the data from each of the series of subsequentlyimages.
 16. The invention of claim 8, wherein the array compares thedata from the first image with data from one of the series ofsubsequently acquired images by shifting one of the first orsubsequently acquired images with respect to the other to determinewhich shifted position best approximates an alignment of the features inthe images.
 17. The invention of claim 15, wherein the images areshifted in a nearest-neighbor fashion.
 18. The invention of claim 16,wherein the light received at each photosensor in the array ofphotosensors is a pixel.
 19. The invention of claim 17, wherein theimages are shifted by one pixel.
 20. The invention of claim 18, whereinthe images are shifted to produce a nearest-neighbor comparison.
 21. Theinvention of claim 18, wherein the images are shifted by more than onepixel.
 22. The invention of claims 6 or 8, further comprising: atransmitter for wireless transmission of a signal based on the relativemotion.
 23. The invention of claim 22 wherein the transmitter furthercomprises: a wireless infrared transmitter.
 24. The invention of claim23 wherein the signal comprises: data representing vectors indicatingthe relative motion.
 25. The invention of claim 22, further comprising:a depressible key.
 26. The invention of claim 25, wherein thedepressible key further comprises: a cursor control key.
 27. Theinvention of claim 25, wherein the depressible key further comprises: areturn key.
 28. The invention of claim 25, wherein the depressible keyfurther comprises: a selection key.
 29. The invention of claim 25,further comprising: one or more other keys to control other events. 30.The invention of claim 25, wherein the signal is continuously enabled.31. The invention of claim 5 further comprising: an exposure control forcontrolling exposure of the acquired images.
 32. The invention of claim5 further comprising: automatic gain control of the images acquired. 33.The invention of claim 32 wherein the automatic gain control isresponsive to the comparisons of the data from the images.
 34. Theinvention of claims 5, 6, 8, 9, 10, or 23, wherein the device is acomputer mouse.
 35. The invention of claim 34 wherein the mouse is anoptical mouse.